﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Admin_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>.:Đăng nhập:.</title>
    <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center><asp:Login ID="Login1" runat="server" onauthenticate="Login1_Authenticate">
        <LayoutTemplate>
            <table border="0" cellpadding="1" cellspacing="0" 
                style="border-collapse:collapse;">
                <tr>
                    <td>
                        <asp:Panel ID="Panel1" runat="server" GroupingText="Thông tin đăng nhập" Width="400px">
                            <p>
                                <table cellpadding="4" cellspacing="0" style="width: 100%; text-align: left;">
                                    <tr>
                                        <td width="30%">
                                            Tên đăng nhập:</td>
                                        <td>
                                            <asp:TextBox ID="UserName" runat="server" Width="70%"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                ControlToValidate="UserName" ErrorMessage="(*)" 
                                                ToolTip="Vui lòng nhập tên đăng nhập" ValidationGroup="reg">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Mật khẩu:</td>
                                        <td>
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="70%"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                ControlToValidate="Password" ErrorMessage="(*)" 
                                                ToolTip="Vui lòng nhập mật khẩu" ValidationGroup="reg">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:CheckBox ID="RememberMe" runat="server" Text="Duy trì đăng nhập" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="text-align: center">
                                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" 
                                                Text="Đăng nhập" ValidationGroup="reg" />
                                        </td>
                                    </tr>
                                </table>
                            </p>
                            </fieldset>
                            </center>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:Login></center>
    </div>
    
    </form>
</body>
</html>
